//
//  MovieViewController2.m
//  UI_元旦豆瓣
//
//  Created by dllo on 16/1/3.
//  Copyright © 2016年 lanou3g. All rights reserved.
//

#import "MovieViewController2.h"
#import "UIImageView+WebCache.h"
@interface MovieViewController2 ()

@end

@implementation MovieViewController2

- (void)dealloc{
    [super dealloc];
}

- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        
    }
    return self;
}


- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationItem.title = self.modeal.title;
    self.view.backgroundColor = [UIColor whiteColor];
    UIImageView *image = [[UIImageView alloc] initWithFrame:CGRectMake(30, 100, 120, 180)];
    image.backgroundColor = [UIColor redColor];
    [image sd_setImageWithURL:[NSURL URLWithString:self.modeal.images[@"large"]]];
    [self.view addSubview:image];
    [image release];
    
    UILabel *lable1 = [[UILabel alloc] initWithFrame:CGRectMake(160, 110, 160, 30)];
    lable1.backgroundColor = [UIColor whiteColor];
    NSString *str = [NSString stringWithFormat:@"评分：%@", self.modeal.rating];
    [self.view addSubview:lable1];
    lable1.text = str;
    [lable1 release];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
